package com.ruoyi.contract.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.contract.domain.ConBusiness;
import com.ruoyi.contract.domain.ConCusRela;
import com.ruoyi.contract.domain.vo.ConBusinessDetail;


import java.util.List;

/**
 * Created by zhangxiang on 2021/9/17.
 */
public interface IConCusRelaService extends IService<ConCusRela> {


    /**
     * 处理增加合同甲乙丙关系
     * @param conBusiness
     * @param conBusinessDetail
     * @return
     */
    boolean addConCusRelaByConBusiness(ConBusiness conBusiness, ConBusinessDetail conBusinessDetail);

    /**
     * 获取某合同所有关系对象名称
     */
    String getRelationNamesByConId(Long conId, String part);

    /**
     * 复制合同关系对象
     * @param oldConId
     * @param newConId
     * @return
     */
    boolean cloneConCusRela(Long oldConId, Long newConId);

}
